%div.videos
  - @videos.each do |video|
    - if video.is_private?
      - if logged_in? && current_user.authorized_to_view?(video)
        %table.index_video
          %tr
            %td.video_preview
              %a{:href => video_url(video), :title => video.title, :alt => video.title}
                %img.photo_thumb{:src => video.thumbnail, :title => video.title, :alt => video.title}
          %tr
            %td.gallery_name= video.title
    - else
      %table.index_video
        %tr
          %td.video_preview
            %a{:href => video_url(video), :title => video.title, :alt => video.title}
              %img.photo_thumb{:src => video.thumbnail, :title => video.title, :alt => video.title}
        %tr
          %td.video_title= video.title